<?php

namespace Home\Controller;

use Think\Controller;

class IndexController extends Controller
{

    //布局和颜色图标
    public function index()
    {

        $this->display();
    }

    //表单
    public function form()
    {
        $this->display();

    }

    //layer 组件
    public function layer()
    {
        $this->display();

    }
    
    public function test(){
        //视图中可以用多个自定义方法
        $string = '自然写意简欧风格楼梯装修效果图_土拨鼠装修2017装修图片大全';
//        $s = syssubstr(title($string),0,20);
//        var_dump($s);die;
        $this->assign('title',$string);
        $this->display('form');
    }
    


}